package com.system.arrangement.service;

import org.springframework.stereotype.Service;

/**
 * @author 林
 */
@Service
public class ConcreteBuilder extends Builder {

    @Override
    public void buildPoolId(Integer poolId) {
        product.setPoolId(poolId);
    }

    @Override
    public void buildArrangementId(Integer arrangementId) {
        product.setArrangementId(arrangementId);
    }

    @Override
    public void buildRegistrationPrice(double registrationPrice) {
        product.setRegistrationPrice(registrationPrice);
    }

    @Override
    public void buildRegistrationNum(Integer registrationNum) {
        product.setRegistrationNum(registrationNum);
    }

    @Override
    public void buildAddNum() {
        product.setAddNum(0);
    }

    @Override
    public void buildLockNum() {
        product.setLockNum(0);
    }

    @Override
    public void buildBgnTm(String bgnTm) {
        product.setBgnTm(bgnTm);
    }

    @Override
    public void buildEndTm(String endTm) {
        product.setEndTm(endTm);
    }
}
